home *** CD-ROM | disk | FTP | other *** search
/ NBC Slam Jams! / NBC Slam Jams!.iso / nbademo.exe / CABFILE / IDR_CABFILE / Data / UIScript / SingGame / SporPage / STATS.UI < prev   
Text File  |  1999-04-30  |  15KB  |  642 lines

  1. "2D\UI\SporPage\Stats"
  2.  
  3.  
  4. //********************************
  5. //  Data Container
  6. //********************************
  7. DataContainer {
  8.     DBLBContentProvider "SingleGameStatisticsHomeNameDBLBCP" {
  9.         DBListBox "SingleGameStatisticsHomeNameDBListBox";
  10.         Database "PlayerStatsHComposite";
  11.         Format {
  12.             String Field "szFirst" Tab;
  13.             String " ";
  14.             String Field "szLast";
  15.         };
  16.  
  17.         InitialValue {
  18.             Restrict Int Field "nShowStats" Equals 1;
  19.         };
  20.     };
  21.  
  22.     DBLBContentProvider "SingleGameStatisticsTeamHomeNameDBLBCP" {
  23.         DBListBox "SingleGameStatisticsTeamHomeNameDBListBox";
  24.         Database "TeamStatsHComposite";
  25.         Format {
  26.             String Field "szName" Tab;
  27.         };
  28.  
  29.         InitialValue {
  30.             Restrict Int Field "nShowStats" Equals 1;
  31.         };
  32.     };
  33.  
  34.     DBLBContentProvider "SingleGameStatisticsHomeDBLBCP" {
  35.         DBListBox "SingleGameStatisticsHomeDBListBox";
  36.         Database "PlayerStatsHComposite";
  37.  
  38.         Format {
  39.             String Field "szName" Tab;
  40.             Int Field "nGamesPlayed" Tab;
  41.             Int Field "nNumGamesStarted" Tab;
  42.             Int Field "nMinPlayed" Tab;
  43.             Real Field "fPointsPerGame" DecimalPlaces 1 Tab;
  44.             Int Field "nFGMade" Tab;
  45.             Int Field "nFGAttempt" Tab;
  46.             Real Field "fFGPercentage" DecimalPlaces 1 Tab;
  47.             Int Field "n3PtMade" Tab;
  48.             Int Field "n3PtAttempt" Tab;
  49.             Real Field "f3PtPercentage" DecimalPlaces 1 Tab;
  50.             Int Field "nFTMade" Tab;
  51.             Int Field "nFTAttempt" Tab;
  52.             Real Field "fFTPercentage" DecimalPlaces 1 Tab;
  53.             Int Field "nOffReb" Tab;
  54.             Int Field "nDefReb" Tab;
  55.             Int Field "nAssists" Tab;
  56.             Int Field "nFouls" Tab;
  57.             Int Field "nDisqualifications" Tab;
  58.             Int Field "nSteals" Tab;
  59.             Int Field "nTurnovers" Tab;
  60.             Int Field "nBlocks" Tab;
  61.         };
  62.  
  63.         InitialValue {
  64.             Restrict Int Field "nShowStats" Equals 1;
  65.         };
  66.     };
  67.  
  68.     DBLBContentProvider "SingleGameStatisticsTeamHomeDBLBCP" {
  69.         DBListBox "SingleGameStatisticsTeamHomeDBListBox";
  70.         Database "TeamStatsHComposite";
  71.  
  72.         Format {
  73.             Int Field "nWins" Tab;
  74.             Int Field "nLoss" Tab;
  75.             Real Field "fWinningPercent" DecimalPlaces 3 Tab;
  76.             Real Field "fGamesBehind" DecimalPlaces 1 Tab;
  77.             Int Field "nFGMade" Tab;
  78.             Int Field "nFGAttempt" Tab;
  79.             Int Field "n3PtMade" Tab;
  80.             Int Field "n3PtAttempt" Tab;
  81.             Int Field "nFTMade" Tab;
  82.             Int Field "nFTAttempt" Tab;
  83.             Int Field "nOffReb" Tab;
  84.             Int Field "nDefReb" Tab;
  85.             Int Field "nAssists" Tab;
  86.             Int Field "nFouls" Tab;
  87.             Int Field "nDisqualifications" Tab;
  88.             Int Field "nSteals" Tab;
  89.             Int Field "nTurnovers" Tab;
  90.             Int Field "nBlocks" Tab;
  91.         };
  92.  
  93.         InitialValue {
  94.             Restrict Int Field "nShowStats" Equals 1;
  95.         };
  96.     };
  97. };
  98.  
  99.  
  100. //********************************
  101. // Images 
  102. //********************************
  103.  
  104. Image "SingleStatisticsArrowFocusDown" {
  105.     Filename "arFocDn";
  106. };
  107. Image "SingleStatisticsArrowPushDown" {
  108.     Filename "arpushDn";
  109. };
  110. Image "SingleStatisticsArrowFocusUp" {
  111.     Filename "arFocUp";
  112. };
  113. Image "SingleStatisticsArrowPushUp" {
  114.     Filename "arpushUp";
  115. };
  116. Image "SingleStatsTeamSelectArrowPushRight" {
  117.     Filename "arPushRt";
  118. };
  119. Image "SingleStatsTeamSelectArrowPushLeft" {
  120.     Filename "arPushLt";
  121. };
  122. Image "SingleStatsTeamSelectArrowFocusRight" {
  123.     Filename "arFocRt";
  124. };
  125. Image "SingleStatsTeamSelectArrowFocusLeft" {
  126.     Filename "arFocLt";
  127. };
  128. Image "SingleStatisticsRosterUpEnabled" {
  129.     Filename "scrolup";
  130. };
  131.  
  132. Image "SingleStatisticsRosterDownEnabled" {
  133.     Filename "scrldwn";
  134. };
  135.  
  136. Image "SingleStatisticsRosterRightEnabled" {
  137.     Filename "scrlrt";
  138. };
  139.  
  140. Image "SingleStatisticsRosterLeftEnabled" {
  141.     Filename "scrlleft";
  142. };
  143.  
  144. Image "SingleGameStatisticsRosterThumb" {
  145.     Filename "spin";
  146. };
  147.  
  148. Image "SingleGameStatisticsListBoxBack1" {
  149.     Filename "statbox";
  150. };
  151.  
  152. Image "SingleGameStatisticsHorizLine" {
  153.     Position [10,5];
  154.     Filename "horizbar";
  155. };
  156.  
  157. Image "SingleGameStatisticsVertLine" {
  158.     Position [5,10];
  159.     Filename "vertbar";
  160. };
  161.  
  162. Image "SingleStatisticsPlayerEnabled" {
  163.     Filename "plyrenab";
  164.     Position [0, 0];
  165. };
  166. Image "SingleStatisticsPlayerFocused" {
  167.     Filename "plyrfoc";
  168.     Position [0, 0];
  169. };
  170.  
  171. Image "SingleStatisticsPlayerPushed" {
  172.     Filename "plyrPush";
  173.     position [0,0];
  174. };
  175.  
  176. Image "SingleStatisticsTeamEnabled" {
  177.     Filename "teamEnab";
  178.     Position [0, 0];
  179. };
  180. Image "SingleStatisticsTeamFocused" {
  181.     Filename "teamfoc";
  182.     Position [0, 0];
  183. };
  184.  
  185. Image "SingleStatisticsTeamPushed" {
  186.     Filename "teamPush";
  187.     position [0,0];
  188. };
  189.  
  190. //********************************
  191. //  Fonts
  192. //********************************
  193. Font "SingleGameStatisticsHomeDBListBoxFont" {
  194.     Filename "textfnt";
  195.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz0123456789.,:'";
  196.     Kerning 1;
  197.     VerticalKerning 12;
  198. };
  199.  
  200. Font "SingleGameStatisticsHomeTitleDBListBoxFont" {
  201.     Filename "titlefnt";
  202.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789%";
  203.     Kerning 1;
  204. };
  205.  
  206. //********************************
  207. // Styles
  208. //********************************
  209.  
  210. ButtonStyle "SingleStatisticsRosterUp" {
  211.     Enabled Image "SingleStatisticsRosterUpEnabled";
  212.     Focused Image "SingleStatisticsArrowFocusUp";
  213.     Pushed Image "SingleStatisticsArrowPushUp";
  214. };
  215.  
  216. ButtonStyle "SingleStatisticsRosterDown" {
  217.     Enabled Image "SingleStatisticsRosterDownEnabled";
  218.     Focused Image "SingleStatisticsArrowFocusDown";
  219.     Pushed Image "SingleStatisticsArrowPushDown";
  220. };
  221.  
  222. ButtonStyle "SingleStatisticsRosterLeft" {
  223.     Enabled Image "SingleStatisticsRosterLeftEnabled";
  224.     Focused Image "SingleStatsTeamSelectArrowFocusLeft";
  225.     Pushed Image "SingleStatsTeamSelectArrowPushLeft";
  226. };
  227.  
  228. ButtonStyle "SingleStatisticsRosterRight" {
  229.     Enabled Image "SingleStatisticsRosterRightEnabled";
  230.     Focused Image "SingleStatsTeamSelectArrowFocusRight";
  231.     Pushed Image "SingleStatsTeamSelectArrowPushRight";
  232. };
  233.  
  234. Style "SingleGameStatisticsHomeDBListBoxStyle" {
  235.     Font "SingleGameStatisticsHomeDBListBoxFont";
  236. };
  237.  
  238. Style "SingleGameStatisticsHomeTitleDBListBoxStyle" {
  239.     Font "SingleGameStatisticsHomeTitleDBListBoxFont";
  240. };
  241.  
  242. Style "SingleGameStatisticsListBoxStyle" {
  243.     Image "SingleGameStatisticsListBoxBack1";
  244. };
  245.  
  246. Style "SingleGameStatisticsHorizLineStyle" {
  247.     Image "SingleGameStatisticsHorizLine";
  248. };
  249.  
  250. Style "SingleGameStatisticsVertLineStyle" {
  251.     Image "SingleGameStatisticsVertLine";
  252. };
  253.  
  254. ButtonStyle "SingleGameStatisticsTeamButtonStyle" {
  255.     Enabled Image "SingleStatisticsTeamEnabled";
  256.     Armed Image "SingleStatisticsTeamPushed";
  257.     Focused Image "SingleStatisticsTeamFocused";
  258. };
  259.  
  260. ButtonStyle "SingleGameStatisticsPlayerButtonStyle" {
  261.     Enabled Image "SingleStatisticsPlayerEnabled";
  262.     Armed Image "SingleStatisticsPlayerPushed";
  263.     Focused Image "SingleStatisticsPlayerFocused";
  264. };
  265.  
  266.  
  267. //********************************
  268. //  Buttons
  269. //********************************
  270. Button "SingleStatisticsHorizLeft" {
  271.     ButtonStyle "SingleStatisticsRosterLeft";
  272. };
  273.  
  274. Button "SingleStatisticsHorizRight" {
  275.     ButtonStyle "SingleStatisticsRosterRight";
  276.     Position [365, 0];
  277. };
  278.  
  279. Thumb "SingleGameStatisticsHorizThumb" {
  280.     Image "SingleGameStatisticsRosterThumb";
  281.     Horizontal;
  282.     FixedPosition 2;
  283.     Range [15, 353];
  284. };
  285.  
  286. Button "SingleStatisticsVertUp" {
  287.     ButtonStyle "SingleStatisticsRosterUp";
  288. };
  289.  
  290. Button "SingleStatisticsVertDown" {
  291.     ButtonStyle "SingleStatisticsRosterDown";
  292.     Position [0, 285];
  293. };
  294.  
  295. Thumb "SingleGameStatisticsVertThumb" {
  296.     Image "SingleGameStatisticsRosterThumb";
  297.     Vertical;
  298.     FixedPosition 2;
  299.     Range [15, 273];
  300. };
  301.  
  302. Button "SingleStatisticsTeamHorizLeft" {
  303.     ButtonStyle "SingleStatisticsRosterLeft";
  304. };
  305.  
  306. Button "SingleStatisticsTeamHorizRight" {
  307.     ButtonStyle "SingleStatisticsRosterRight";
  308.     Position [365, 0];
  309. };
  310.  
  311. Thumb "SingleGameStatisticsTeamHorizThumb" {
  312.     Image "SingleGameStatisticsRosterThumb";
  313.     Horizontal;
  314.     FixedPosition 2;
  315.     Range [15, 353];
  316. };
  317.  
  318. Button "SingleStatisticsTeamVertUp" {
  319.     ButtonStyle "SingleStatisticsRosterUp";
  320. };
  321.  
  322. Button "SingleStatisticsTeamVertDown" {
  323.     ButtonStyle "SingleStatisticsRosterDown";
  324.     Position [0, 285];
  325. };
  326.  
  327. Thumb "SingleGameStatisticsTeamVertThumb" {
  328.     Image "SingleGameStatisticsRosterThumb";
  329.     Vertical;
  330.     FixedPosition 2;
  331.     Range [15, 273];
  332. };
  333.  
  334. CheckButton "SingleGameStatisticsTeamButton" {
  335.     ButtonStyle "SingleGameStatisticsTeamButtonStyle";
  336.     Position [-1, 92];
  337. };
  338.  
  339. CheckButton "SingleGameStatisticsPlayerButton" {
  340.     ButtonStyle "SingleGameStatisticsPlayerButtonStyle";
  341.     Position [-1, 0];
  342. };
  343.  
  344. //********************************
  345. //  Groups
  346. //********************************
  347. ScrollBarGroup "SingleStatisticsHorizScrollBar" {
  348.     Style "SingleGameStatisticsHorizLineStyle";
  349.  
  350.     Position [183, 350];
  351.     Horizontal;
  352.     Children {
  353.         Button "SingleStatisticsHorizLeft";
  354.         Thumb "SingleGameStatisticsHorizThumb";
  355.         Button "SingleStatisticsHorizRight";
  356.     };
  357. };
  358.  
  359. ScrollBarGroup "SingleStatisticsVertScrollBar" {
  360.     Style "SingleGameStatisticsVertLineStyle";
  361.     Position [8, 45];
  362.     Vertical;
  363.     Children {
  364.         Button "SingleStatisticsVertUp";
  365.         Thumb "SingleGameStatisticsVertThumb";
  366.         Button "SingleStatisticsVertDown";
  367.     };
  368. };
  369.  
  370. ScrollBarGroup "SingleStatisticsTeamHorizScrollBar" {
  371.     Style "SingleGameStatisticsHorizLineStyle";
  372.  
  373.     Position [183, 350];
  374.     Horizontal;
  375.     Children {
  376.         Button "SingleStatisticsTeamHorizLeft";
  377.         Thumb "SingleGameStatisticsTeamHorizThumb";
  378.         Button "SingleStatisticsTeamHorizRight";
  379.     };
  380. };
  381.  
  382. ScrollBarGroup "SingleStatisticsTeamVertScrollBar" {
  383.     Style "SingleGameStatisticsVertLineStyle";
  384.     Position [8, 45];
  385.     Vertical;
  386.     Children {
  387.         Button "SingleStatisticsTeamVertUp";
  388.         Thumb "SingleGameStatisticsTeamVertThumb";
  389.         Button "SingleStatisticsTeamVertDown";
  390.     };
  391. };
  392.  
  393. //Main body of stats
  394. DBListBox "SingleGameStatisticsHomeDBListBox" {
  395.     Style "SingleGameStatisticsHomeDBListBoxStyle";
  396.     Position [180, 59];
  397.     Size [384, 275];
  398.     Highlight [160, 0, 0];
  399.     VerticalHighlight [70, 70, 250];
  400.  
  401.     TabSet {
  402.         TabSize 64;
  403.         Number 22;
  404.         Justify Center;
  405.     };
  406. };
  407.  
  408. DBListBox "SingleGameStatisticsTeamHomeDBListBox" {
  409.     Style "SingleGameStatisticsHomeDBListBoxStyle";
  410.     Position [180, 59];
  411.     Size [384, 275];
  412.     Highlight [160, 0, 0];
  413.     VerticalHighlight [70, 70, 250];
  414.  
  415.     TabSet {
  416.         TabSize 35;
  417.         Number 19;
  418.         Justify Center;
  419.     };
  420. };
  421.  
  422. //Player names (row headings)
  423. DBListBox "SingleGameStatisticsHomeNameDBListBox" {
  424.     Style "SingleGameStatisticsHomeDBListBoxStyle";
  425.     Position [32, 59];
  426.     Size [147, 275];
  427.     Highlight [160, 0, 0];
  428.  
  429.     Tab 0 Left;
  430. };
  431.  
  432. DBListBox "SingleGameStatisticsTeamHomeNameDBListBox" {
  433.     Style "SingleGameStatisticsHomeDBListBoxStyle";
  434.     Position [32, 59];
  435.     Size [147, 275];
  436.     Highlight [160, 0, 0];
  437.  
  438.     Tab 0 Left;
  439. };
  440.  
  441. DBListBox "SingleGameStatisticsFieldsBox" {
  442.     Style "SingleGameStatisticsHomeTitleDBListBoxStyle";
  443.     Position [180, 0];
  444.     Size [384,60];
  445.     VerticalHighlight [70, 70, 250];
  446.     Sortable {
  447.         Database "PlayerStatsHComposite";
  448.         // This Order should match the order that they come in columns
  449.         Field "szName";
  450.         Field "nGamesPlayed";
  451.         Field "nNumGamesStarted";
  452.         Field "nMinPlayed";
  453.         Field "fPointsPerGame";
  454.         Field "nFGMade";
  455.         Field "nFGAttempt";
  456.         Field "fFGPercentage";
  457.         Field "n3PtMade";
  458.         Field "n3PtAttempt";
  459.         Field "f3PtPercentage";
  460.         Field "nFTMade";
  461.         Field "nFTAttempt";
  462.         Field "fFTPercentage";
  463.         Field "nOffReb";
  464.         Field "nDefReb";
  465.         Field "nAssists";
  466.         Field "nFouls";
  467.         Field "nDisqualifications";
  468.         Field "nSteals";
  469.         Field "nTurnovers";
  470.         Field "nBlocks";
  471.     };
  472.  
  473.     String "    TEAM    G    GS    MINP    PPG    FGM    FGA    FG%    3PM""    3PA    3P%    FTM    FTA    FT%""    OFFR    DEFR    AST    FOUL    DIS    STLS    TOVR    BLK";
  474.  
  475.     TabSet {
  476.         TabSize 64;
  477.         Number 22;
  478.         Justify Center;
  479.     };
  480. };
  481.  
  482. DBListBox "SingleGameStatisticsTeamFieldsBox" {
  483.     Style "SingleGameStatisticsHomeTitleDBListBoxStyle";
  484.     Position [180, 0];
  485.     Size [384,60];
  486.     VerticalHighlight [70, 70, 250];
  487.  
  488.     Sortable {
  489.         Database "TeamStatsHComposite";
  490.         // This Order should match the order that they come in columns
  491.         Field "nWins";
  492.         Field "nLoss";
  493.         Field "fWinningPercent";
  494.         Field "fGamesBehind";
  495.         Field "nFGMade";
  496.         Field "nFGAttempt";
  497.         Field "n3PtMade";
  498.         Field "n3PtAttempt";
  499.         Field "nFTMade";
  500.         Field "nFTAttempt";
  501.         Field "nOffReb";
  502.         Field "nDefReb";
  503.         Field "nAssists";
  504.         Field "nFouls";
  505.         Field "nDisqualifications";
  506.         Field "nSteals";
  507.         Field "nTurnovers";
  508.         Field "nBlocks";
  509.     };
  510.  
  511.     String "    W    L    WIN%    GB    FGM    FGA    3PM    3PA    FTM    FTA""    OFFR    DEFR    AST    FOUL    DIS    STLS    TOVR    BLK";
  512.  
  513.     TabSet {
  514.         TabSize 35;
  515.         Number 19;
  516.         Justify Center;
  517.     };
  518. };
  519.  
  520. DBListBox "SingleGameStatisticsNameField" {
  521.     Style "SingleGameStatisticsHomeTitleDBListBoxStyle";
  522.     Position [80, 142];
  523.     Size [100,50];
  524.  
  525.     Sortable {
  526.         Database "PlayerStatsHComposite";
  527.         // This Order should match the order that they come in columns
  528.         Field "szLast";
  529.     };
  530.     
  531.     String "NAME";
  532.  
  533.     // This Must have a tab size in order to give the selectable area for the sorting
  534.     TabSet {
  535.         TabSize 100;
  536.         Number 1;
  537.         Justify Left;
  538.     };
  539. };
  540.  
  541. DBListBox "SingleGameStatisticsTeamNameField" {
  542.     Style "SingleGameStatisticsHomeTitleDBListBoxStyle";
  543.     Position [80, 142];
  544.     Size [100,50];
  545.  
  546.     Sortable {
  547.         Database "TeamStatsHComposite";
  548.         // This Order should match the order that they come in columns
  549.         Field "szName";
  550.     };
  551.     
  552.     String "NAME";
  553.  
  554.     // This Must have a tab size in order to give the selectable area for the sorting
  555.     TabSet {
  556.         TabSize 100;
  557.         Number 1;
  558.         Justify Left;
  559.     };
  560. };
  561.  
  562. CompositeScrollItemGroup "SingleGameStatisticsListBoxGroup" {
  563.     Horizontal Children {
  564.         DBListBox "SingleGameStatisticsFieldsBox";
  565.         DBListBox "SingleGameStatisticsHomeDBListBox";
  566.     };
  567.     Vertical Children {
  568.         DBListBox "SingleGameStatisticsHomeDBListBox";
  569.         DBListBox "SingleGameStatisticsHomeNameDBListBox";
  570.     };
  571. };
  572.  
  573. CompositeScrollItemGroup "SingleGameStatisticsTeamListBoxGroup" {
  574.     Horizontal Children {
  575.         DBListBox "SingleGameStatisticsTeamFieldsBox";
  576.         DBListBox "SingleGameStatisticsTeamHomeDBListBox";
  577.     };
  578.     Vertical Children {
  579.         DBListBox "SingleGameStatisticsTeamHomeDBListBox";
  580.         DBListBox "SingleGameStatisticsTeamHomeNameDBListBox";
  581.     };
  582. };
  583.  
  584. ListBoxGroup "SingleStatisticsListBox" {
  585.     Style "SingleGameStatisticsListBoxStyle";
  586.     Position [50, 142];
  587.     Children {
  588.         CompositeScrollItemGroup "SingleGameStatisticsListBoxGroup";
  589.         ScrollBarGroup "SingleStatisticsHorizScrollBar";
  590.         ScrollBarGroup "SingleStatisticsVertScrollBar";
  591.     };
  592. };
  593.  
  594. ListBoxGroup "SingleStatisticsTeamListBox" {
  595.     Style "SingleGameStatisticsListBoxStyle";
  596.     Position [50, 142];
  597.     Children {
  598.         CompositeScrollItemGroup "SingleGameStatisticsTeamListBoxGroup";
  599.         ScrollBarGroup "SingleStatisticsTeamHorizScrollBar";
  600.         ScrollBarGroup "SingleStatisticsTeamVertScrollBar";
  601.     };
  602. };
  603.  
  604. Group "SingleGameStatisticsPlayerGroup" {
  605.     Children {
  606.         ListBoxGroup "SingleStatisticsListBox";
  607.         DBListBox "SingleGameStatisticsNameField";
  608.     };
  609. };
  610.  
  611. Group "SingleGameStatisticsTeamGroup" {
  612.     Children {        
  613.         ListBoxGroup "SingleStatisticsTeamListBox";
  614.         DBListBox "SingleGameStatisticsTeamNameField";
  615.     };
  616. };
  617.  
  618. MenuGroup "SingleGameStatisticsPlayerTeamMenuGroup" {
  619.     Children {
  620.         Group "SingleGameStatisticsPlayerGroup";
  621.         Group "SingleGameStatisticsTeamGroup";
  622.         RadioGroup "SingleGameStatisticsPlayerTeamGroup";
  623.     };
  624. };
  625.  
  626. RadioGroup "SingleGameStatisticsPlayerTeamGroup" {
  627.     Position [35, 142];
  628.     Children {
  629.         CheckButton "SingleGameStatisticsPlayerButton";
  630.         CheckButton "SingleGameStatisticsTeamButton";
  631.     };
  632. };
  633.  
  634. Group "SingleGameStatistics" {
  635.     Root;
  636.     Position [60,-30];
  637.     Children {
  638.         MenuGroup "SingleGameStatisticsPlayerTeamMenuGroup";
  639.     };
  640. };
  641.  
  642.